package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.UserLikesMapper;
import com.yunji.framework_template.orm.persistence.model.UserLikes;

/**
 * Created by fenglibin on 2018/11/26.
 */
@Service
public class UserLikesService {

    @Autowired
    private UserLikesMapper userLikesMapper;

    public int deleteByPrimaryKey(Integer id) {
        return userLikesMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserLikes record) {
        return userLikesMapper.insert(record);
    }

    public int insertSelective(UserLikes record) {
        return userLikesMapper.insertSelective(record);
    }

    public UserLikes selectByPrimaryKey(Integer id) {
        return userLikesMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(UserLikes record) {
        return userLikesMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(UserLikes record) {
        return userLikesMapper.updateByPrimaryKey(record);
    }

    public List<UserLikes> selectByCondition(UserLikes record) {
        return userLikesMapper.selectByCondition(record);
    }

    public List<UserLikes> selectAll() {
        return userLikesMapper.selectAll();
    }

    public List<UserLikes> selectByPage(Page<UserLikes> page) {
        return userLikesMapper.selectByPage(page);
    }

    public Integer count(UserLikes record) {
        return userLikesMapper.count(record);
    }

    public int deleteByCondition(UserLikes record) {
        return userLikesMapper.deleteByCondition(record);
    }

}
